﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="ListeRecettes.aspx.cs" Inherits="WebApplication1.WebForm1" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
LISTE DES RECETTES
</h2>
<br/>
     
        <asp:GridView ID="GridView1" runat="server" autogeneratecolumns="False"
            onselectedindexchanged="GridView1_SelectedIndexChanged">
            <Columns>

                <asp:HyperLinkField DataNavigateUrlFields="id_recette" 
                    DataNavigateUrlFormatString="DetailRecette.aspx?id_recette={0}" HeaderText="id" 
                    SortExpression="id_recette" DataTextField="id_recette" Target="_top"  />
                
                <asp:BoundField DataField="nom" HeaderText="nom" 
                    SortExpression="nom" />
                <asp:BoundField DataField="tps_total" HeaderText="temps total" 
                    SortExpression="tps_preparation" />
                <asp:BoundField DataField="cout" HeaderText="coût" SortExpression="cout" />
                <asp:BoundField DataField="difficulte" HeaderText="difficulté" 
                    SortExpression="difficulte" />

               

            </Columns>

        </asp:GridView>

</asp:Content>